package HomeWork_20190329;

public class HomeWork_04 {
	public static void main(String[] args) {
		CalculatorAdd ca = new CalculatorAdd();
		System.out.println(ca.add(1,2));
		System.out.println(ca.add(1,2,3));
		System.out.println(ca.add(1.0,2.0));
	}

}

class CalculatorAdd{
	public int add(int number1,int number2){
		return number1+number2;
	}
	public int add(int number1,int number2,int number3){
		return number1+number2+number3;
	}
	public double add(double number1,double number2){
		return number1+number2;
	}
	
}
